import http from '@/http'
import { HtModel, ListHtParam } from './HtModel'

export const addUserApi = (param: HtModel) => {
    return http.post("/api/ht", param)
}

export const getListApi = (param: ListHtParam) => {
    return http.get("/api/ht/list", param)
}

export const editUserApi = (param: HtModel) => {
    return http.put("/api/ht", param)
}

export const deleteUserApi = (id: string) => {
    return http.delete(`/api/ht/${id}`)
}
